import { post } from '@/core/utils/http';
import type { Response } from '@/core/models';

/**  获取售后单列表 */
export const queryAftersalesList = (data : any) : Promise<Response<any>> => {
	return post('Api/Order/AftersalesList', {
		data,
	}, true)
}

/**  获取售后单详情 */
export const queryAftersalesInfo = (data : any) : Promise<Response<any>> => {
	return post('Api/Order/Aftersalesinfo', {
		data,
	}, true)
}

/**  用户发送退货包裹 */
export const querySendReship = (data : any) : Promise<Response<any>> => {
	return post('Api/Order/SendReship', {
		data,
	}, true)
}

/**  提交售后单 */
export const queryAddAftersales = (data : any) : Promise<Response<any>> => {
	return post('Api/Order/AddAftersales', {
		data,
	}, true)
}